<?php


namespace app\index\validate;

use think\Validate;

class consignorItem extends Validate
{
    protected $rule = [
        'id'=>'require',
        'item_category'=>'require',
        'title' => 'require',
        'service_name'=>'require',
        'trade_name'=>'require',
        'province' => 'require',
        'city' => 'require',
        'end_time'=>'require',
        'budget'=>'require',
        'item_about' => 'require',
        'certification_content'=>'require',
        'item_content' => 'require',

    ];
    protected $message = [
        'id'=>'传入的ID为空',
        'item_category'=>'请选择所述分类',
        'title' => '标题名字不能为空',
        'service_name'=>'清选择服务类型',
        'trade_name'=>'请选择货物类别',
        'province' => '清选择所述省份',
        'city' => '清选择城市',
        'end_time'=>'请选择结束时间',
        'budget'=>'预算必须填写',
        'item_about' => '项目概括必须填写',
        'certification_content'=>'资质要求必须填写',
        'item_content' => '项目内容必须填写',
    ];

    protected $scene = [
        'addNoticeItem' => ['item_category','item_category','title','service_name','trade_name','province','city','end_time','budget','item_about','certification_content','item_content'],
    ];
}